home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Performance Co-Pilot 1.3
/
SGI Performance Co-Pilot 1.3.iso
/
dist
/
dist6.4
/
pcp.idb
/
usr
/
include
/
pcp
/
util.h.z
/
util.h
Wrap
C/C++ Source or Header
|
1997-04-03
|
2KB
|
74 lines
/*
* Copyright (c) 1994 Silicon Graphics, Inc.
* ALL RIGHTS RESERVED.
*
* U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND
* Use, duplication or disclosure by the Government is subject to
* restrictions as set forth in FAR 52.227.19(c)(2) or subparagraph
* (c)(1)(ii) of the Rights in Technical Data and Computer Software clause
* at DFARS 252.227-7013 and/or similar or successor clauses in the FAR,
* or the DOD or NASA FAR Supplement. Contractor/manufacturer is Silicon
* Graphics, Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311.
*
* THIS SOFTWARE CONTAINS CONFIDENTIAL AND PROPRIETARY INFORMATION OF
* SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION, DISTRIBUTION, OR
* DISCLOSURE IS STRICTLY PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN
* PERMISSION OF SILICON GRAPHICS, INC.
*/
/* $Id: util.h,v 2.7 1997/03/21 08:29:01 kenmcd Exp $ */
#ifndef _UTIL_H
#define _UTIL_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* These are useful utilities that are used in more than one place ...
* we use them, but don't necessarily want to support them at the PMAPI,
* hence they are outside libpcp
*/
extern void printdesc(FILE *, pmDesc *);
/* access control routines */
extern int _pmAccAddOp(unsigned int);
extern int _pmAccAddHost(char *, unsigned int, unsigned int, int);
extern int _pmAccAddClient(unsigned long, unsigned int *);
extern void _pmAccDelClient(unsigned long);
extern void _pmAccDumpHosts(FILE *);
extern int _pmAccSaveHosts(void);
extern int _pmAccRestoreHosts(void);
extern void _pmAccFreeSavedHosts(void);
/*
* process memory interface
* Fields are Kbytes.
* vxxx is virtual memory usage.
* pxxx is physical mem, pro-rated for sharing.
* TODO: sharing does not account for sprocs (in 5.3 at least)
*/
typedef struct {
unsigned long ptxt;
unsigned long vtxt;
unsigned long pdat;
unsigned long vdat;
unsigned long pbss;
unsigned long vbss;
unsigned long pstk;
unsigned long vstk;
unsigned long pshm;
unsigned long vshm;
} _pmProcMem_t;
extern int _pmProcMem(int /*fd*/, _pmProcMem_t *);
#ifdef __cplusplus
}
#endif
#endif /* _UTIL_H */